ENTITY

applied_transfers

Represents a crosschain transfer that has been applied on this chain.

When a transfer is going from chain A to C, passing through chain B, this is what will happen on the chains:

  • init_transfer gets called on chain A
  • crosschain_transfer_history_entry is created for this transfer on chain A
  • pending_transfer is created for this transfer on chain A
  • apply_transfer is called on chain B
  • applied_transfer is created for this transfer on chain B
  • apply_transfer is called on chain C
  • crosschain_transfer_history_entry is created for this transfer on chain C
  • applied_transfer is created for this transfer on chain C
  • complete_transfer is called on chain A
  • pending_transfer created in step 3 on chain A is removed

Chain A is the "init chain", chain B and C are "hops". Chain C is also the "target chain" for this transfer.

entity applied_transfers {

The ID of the transaction that initialized this cross-chain transfer

key init_tx_rid: byte_array;

The index of the operation in the transaction that initialized this cross-chain transfer

key init_op_index: integer;

The transaction that applied this transfer

transaction: transaction;

The index of the operation in the transaction that applied this transfer

op_index: integer;
}
© 2024 Chromia